package com.zrx.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrx.springboot.entity.CartVo;
import com.zrx.springboot.entity.Order;
import com.zrx.springboot.entity.OrderQueryVo;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrderService extends IService<Order> {
    /**
     * 购买订单添加购物车删除
     */
    public String buy(List<CartVo> cartVos,Integer addrId, HttpSession session);
    /**
     * 查询用户订单
     */
    public List<Order> findUserOrder(Integer userId, OrderQueryVo orderQueryVo);
    /**
     * 查询总页数
     */
    public Integer findUserOrderPages(Integer userId,OrderQueryVo orderQueryVo);
}
